﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.Json;
using XingLucifer.IBase.Enums;
using System.Text.Json.Serialization;
using PropertyChanged;

namespace UIWindows.Models.Interact
{
    /// <summary>
    /// 交互地址模型
    /// </summary>
    public class InteractAddressModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;
        public Guid ThisGuid { get; set; }
        /// <summary>
        /// 启动命令索引 0-63 选择
        /// </summary>
        public int Index { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public string Label { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        public TaskTypes TaskType { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public DeviceTypes DeviceType { get; set; }
        /// <summary>
        /// 设备索引
        /// </summary>
        public int DeviceIndex { get; set; }
        /// <summary>
        /// 结构体标签
        /// </summary>
        public string Address_Struct { get; set; }
        /// <summary>
        /// 结构体长度
        /// </summary>
        public int Struct_Length { get; set; }

        /// <summary>
        /// 服务名
        /// </summary>
        public string ServiceName { get; set; }
    }
}
